import React from 'react';
import ReactDOM from 'react-dom';

import styles from './index.less';
const APP = () => {
  return (
    <div
      className={styles.content}
      onClick={() => {
        window.api.broadcast({
          target: 'mainWindow',
          msg: 'startRecord'
        });
        window.api.sendMsg({ type: 'startRecord' });
        window.api.operateWindow('close');
      }}
    >
      <div>点击任意位置开始录制</div>
    </div>
  );
};

ReactDOM.render(<APP />, document.getElementById('root'));
